package com.antaohua.tools.system.controller;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.antaohua.framework.web.controller.BaseController;
import com.antaohua.framework.web.utils.JsonResult;
import com.antaohua.tools.framework.base.exception.InsertEntityException;
import com.antaohua.tools.framework.base.exception.QureyEntityException;
import com.antaohua.tools.system.domain.TreeDomain;
import com.antaohua.tools.system.entity.SysDictGroupEntity;
import com.antaohua.tools.system.entity.SysUserEntity;
import com.antaohua.tools.system.service.SysDictgroupService;
import com.antaohua.tools.system.service.SysUserService;

@RestController
@RequestMapping("sys/dict_group")
public class SysDictGoupController extends BaseController<SysDictGroupEntity>{

	

	@RequestMapping("find_all_tree")
	public List<TreeDomain> findAllbyTree() throws QureyEntityException{
		return ((SysDictgroupService)service).findAllbyTree();
	}
	
}
